/*
 * Copyright (c) 2015. For Intelligent Group.
 */

package com.intelligent.mts.core.dao;

import com.intelligent.mts.core.entity.FinishGood;

import java.util.List;

/**
 * Created by julia.zhou on 2016/8/22.
 */
@MyBatisRepository
public interface FinishGoodDao {

    void save(FinishGood finishGood);

    void update (FinishGood finishGood);

    List<FinishGood> findByCustomer(String customerName);

    List<FinishGood> findByCustomerAndFgPn (String customerName, String fgPn);

    List<FinishGood> findByPnAndKey(String pn, String key);

    List<FinishGood> findFgPnByPn(String pn);

    FinishGood finByFgPnAndKey (String fgPn, String key);

    List<FinishGood> finFgPnByPns (List<String> pns);

}
